package com.fingard.dsp.bank.reqrespobj.entrust;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;

import java.util.HashMap;

/**
 * 纯签约解约请求实体类
 */
public class ReqDeEntrust extends RequestBase {
    /** 商户账号 */
    public String ownAct = "";

    /** 订单号 */
    public String rdSeq;

    /** 协议模板id */
    public String planId = "";

    /** 签约协议号 */
    public String authCode = "";

    /** 渠道方返回签约协议id */
    public String channelAuthCode = "";

    /** 备注 */
    public String memo = "";

    public ReqDeEntrust(HashMap<String, String> p_hashMap, ReqRespHeader p_header) throws Exception {
        if (p_hashMap.containsKey("OurBankAccount")) {
            ownAct = p_hashMap.get("OurBankAccount");
            if (ownAct == null) {
                ownAct = "";
            }
        }
        if (p_hashMap.containsKey("RdSeq")) {
            rdSeq = p_hashMap.get("RdSeq");
        }
        if (p_hashMap.containsKey("ContractTerminationRemark")) {
            memo = p_hashMap.get("ContractTerminationRemark");
        }
        if (p_hashMap.containsKey("PlanID")) {
            planId = p_hashMap.get("PlanID");
        }
        if (p_hashMap.containsKey("ContractCode")) {
            authCode = p_hashMap.get("ContractCode");
        }
        if (p_hashMap.containsKey("ContractID")) {
            channelAuthCode = p_hashMap.get("ContractID");
        }
    }
}
